package xyz.labmem.base.sys.module.user.controller.request

import com.fasterxml.jackson.annotation.JsonIgnore
import io.swagger.annotations.ApiModelProperty
import xyz.labmem.base.core.base.BaseVerify
import javax.validation.constraints.NotBlank
import javax.validation.constraints.Size

/**
 * @Author lty
 * @Date 2021/12/17 14:04
 */
class SysUserCURDReq {

    @ApiModelProperty(value = "账号")
    @NotBlank(message = "请输入账号", groups = [BaseVerify.add::class])
    @Size(min = 2, max = 20, message = "账号长度在2-20位", groups = [BaseVerify.add::class])
    var account: String? = null

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "请输入用户名", groups = [BaseVerify.add::class])
    @Size(min = 1, max = 20, message = "用户名长度在1-20位", groups = [BaseVerify.add::class])
    var username: String? = null

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "请输入密码", groups = [BaseVerify.add::class])
    @Size(min = 1, max = 20, message = "密码长度在6-20位", groups = [BaseVerify.add::class])
    var password: String? = null

    @ApiModelProperty(value = "联系方式")
    var phonenumber: String? = null

    @ApiModelProperty(value = "单位名称")
    var deptName: String? = null

    @ApiModelProperty(value = "单位地址")
    var deptAddres: String? = null

    @ApiModelProperty(value = "单位电话")
    var phone: String? = null
}